package nccloud.bs.pu.bg;

import nc.bs.pub.pa.PreAlertObject;
import nc.bs.pub.taskcenter.BgWorkingContext;
import nc.bs.pub.taskcenter.IBackgroundWorkPlugin;
import nc.vo.pub.BusinessException;
import nccloud.bs.pu.op.SendMailOP;

public class AutoSendMail implements IBackgroundWorkPlugin {

	@Override
	public PreAlertObject executeTask(BgWorkingContext context) throws BusinessException {
		try {

			new SendMailOP().exec();
		} catch (Exception e) {
			throw new BusinessException(e);
		}
		return null;
	}
	
	public  AutoSendMail() {
		super();
	}

}
